from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver=webdriver.Chrome()
driver.get('https://www.baidu.com')

a=driver.find_element(By.XPATH,'//form/input')
print(a.get_attribute('outerHTML'))

b=driver.find_element(By.XPATH,'//form/span/input')
print(b.get_attribute('outerHTML'))




time.sleep(3)
driver.quit()


